package com.ruoyi.websocket.domain;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import org.springframework.data.annotation.Id;
import org.springframework.data.elasticsearch.annotations.Document;
import org.springframework.data.elasticsearch.annotations.Field;
import org.springframework.data.elasticsearch.annotations.FieldType;

/**
 * 
 * @TableName auto_reply
 */
@TableName(value ="auto_reply")
@Data
@Document(indexName = "auto_reply")
public class AutoReply {

    @Id
    @TableId(type = IdType.AUTO)
    private Integer id;

    /**
     * 自动回复的问题
     */
    @Field(type = FieldType.Text)
    private String question;

    /**
     * 自动回复的答案
     */
    @Field(type = FieldType.Text)
    private String answer;
}